<!doctype html>
<html>
<head>
    <!--Setting-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="apple-mobile-web-app-capable"  content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no">
    
    
    <!--Simple SEO-->


<meta name="robots" content=all />
<meta name="google" content=all />
<meta name="googlebot" content=all />
<meta name="verify" content=all />
    <!--Title-->

<title>MIAbon&#39;s blog</title>

<link rel="alternate" href="/atom.xml" title="MIAbon&#39;s blog" type="application/atom+xml">


<link rel="icon" href="/favicon.ico">

    
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/pages/article-exp.css">
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/thirdParty/highlight/github.css">

    <!--script-->


<script src="http://cdn1.lncld.net/static/js/3.2.1/av-min.js"></script>
<script>
  var appId = "i7AHmC7NPbPtgS3YxT67dRIc-9Nh9j0Va";
  var appKey = "g6TKbY8O4TsCDMcemoC3STvQ";
  var region = "";
  AV.init({
    appId: appId,
    appKey: appKey,
    region: region
  });
</script>


<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<!--<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>-->


    
    
</head>

<body id="normal">
<!--[if lte IE 8]>
<style>
    html{ font-size: 1em }
</style>
<![endif]-->
<!--[if lte IE 9]>
<style>
    header{ top: 71px; position: absolute!important;}
    #container{padding-top: 151px!important;}
</style>
<div style="position:fixed;z-index:9999;left:0;top:0;width:100%;height:70px;background-color:#e0e0e0;color:#396CA5;border-bottom:1px solid #cecece;text-align:center;line-height:70px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis">你使用的浏览器版本过低，为了你更好的阅读体验，请更新浏览器的版本或者使用其他现代浏览器，比如Chrome、Firefox、Safari等。</div>
<![endif]-->

<div id="wrap">
    <header >
    <div id="site-meta">
        <a href="/" id="logo">
            <h1 class="title">MIAbon&#39;s blog</h1>
        </a>
        
    </div>
    <ul id="nav">
        
            <li><a href="/"><i class="fa fa-home"></i>首页</a></li>
        
            <li><a href="/atom.xml"><i class="fa fa-rss"></i>RSS</a></li>
        
        <li id="search"><a href="javascript:void(0)"><i class="fa fa-search"></i>搜索</a></li>
    </ul>
</header>

    <div id="container">
        
<ul id="sidebar">
    
    
    
    
<li class="widget widget-normal category">
    <h3 class="fa fa-th widget-title">分类</h3>
    <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/ELK/"><i class="fa" aria-hidden="true">ELK</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Lvs/"><i class="fa" aria-hidden="true">Lvs</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/admin/"><i class="fa" aria-hidden="true">admin</i></a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/ansible/"><i class="fa" aria-hidden="true">ansible</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/aws/"><i class="fa" aria-hidden="true">aws</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/docker/"><i class="fa" aria-hidden="true">docker</i></a><span class="category-list-count">7</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/drone/"><i class="fa" aria-hidden="true">drone</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kernel/"><i class="fa" aria-hidden="true">kernel</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kubernetes/"><i class="fa" aria-hidden="true">kubernetes</i></a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/kvm/"><i class="fa" aria-hidden="true">kvm</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mongodb/"><i class="fa" aria-hidden="true">mongodb</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link current" href="/categories/python/"><i class="fa" aria-hidden="true">python</i></a><span class="category-list-count">9</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/share/"><i class="fa" aria-hidden="true">share</i></a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/web/"><i class="fa" aria-hidden="true">web</i></a><span class="category-list-count">12</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/zabbix/"><i class="fa" aria-hidden="true">zabbix</i></a><span class="category-list-count">3</span></li></ul>
</li>


    
    
<li class="widget widget-normal archive">
  <h3 class="fa fa-archive widget-title">归档</h3>
    <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/"><i class="fa" aria-hidden="true">二月 2018</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/"><i class="fa" aria-hidden="true">一月 2018</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/"><i class="fa" aria-hidden="true">十二月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/"><i class="fa" aria-hidden="true">十一月 2017</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/"><i class="fa" aria-hidden="true">十月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/"><i class="fa" aria-hidden="true">九月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/"><i class="fa" aria-hidden="true">八月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/"><i class="fa" aria-hidden="true">五月 2017</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/"><i class="fa" aria-hidden="true">四月 2017</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/"><i class="fa" aria-hidden="true">三月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/"><i class="fa" aria-hidden="true">一月 2017</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/"><i class="fa" aria-hidden="true">十二月 2016</i></a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/"><i class="fa" aria-hidden="true">十一月 2016</i></a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/"><i class="fa" aria-hidden="true">十月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/"><i class="fa" aria-hidden="true">八月 2016</i></a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/"><i class="fa" aria-hidden="true">五月 2016</i></a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/"><i class="fa" aria-hidden="true">四月 2016</i></a><span class="archive-list-count">8</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/"><i class="fa" aria-hidden="true">五月 2015</i></a><span class="archive-list-count">1</span></li></ul>
</li>


    
    
<li class="widget widget-normal tags">
  <h3 class="fa fa-tags widget-title">标签云</h3>
  <div class="tagcloud-content">
    
      <a href="/tags/drone/" style="font-size: 0.14rem; color: #69c">drone</a> <a href="/tags/linux/" style="font-size: 0.2rem; color: #0a407c">linux</a> <a href="/tags/kernel/" style="font-size: 0.16rem; color: #4f83b8">kernel</a> <a href="/tags/ELK/" style="font-size: 0.14rem; color: #69c">ELK</a> <a href="/tags/ansible/" style="font-size: 0.14rem; color: #69c">ansible</a> <a href="/tags/swarm/" style="font-size: 0.14rem; color: #69c">swarm</a> <a href="/tags/docker/" style="font-size: 0.18rem; color: #215690">docker</a> <a href="/tags/firewalld/" style="font-size: 0.14rem; color: #69c">firewalld</a> <a href="/tags/zabbix/" style="font-size: 0.16rem; color: #4f83b8">zabbix</a> <a href="/tags/aws/" style="font-size: 0.14rem; color: #69c">aws</a> <a href="/tags/web/" style="font-size: 0.16rem; color: #4f83b8">web</a> <a href="/tags/python/" style="font-size: 0.18rem; color: #215690">python</a> <a href="/tags/spider/" style="font-size: 0.17rem; color: #386da4">spider</a>
  </div>
</li>


    
    
<li class="widget widget-normal friends-link">
    <h3 class="fa fa-globe widget-title">友链</h3><br/>

    
        <a href="http://zhengwei666.wang" class="fa" target="_blank">zhengwei</a>

    
        <a href="https://you-deng.github.io" class="fa" target="_blank">dengyou</a>

    
        <a href="http://www.systemd.cn" class="fa" target="_blank">langyaoliang</a>

    
        <a href="http://www.chen-hao.com.cn/" class="fa" target="_blank">chenhao</a>

    
        <a href="http://www.yulongjun.com" class="fa" target="_blank">yulongjun</a>

    

</li>

    
</ul>


        <ul id="main">
    

    
    
    
    
    
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/05/24/firewalld/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/05/24/firewalld/">
                <h2 class="article-title">firewalld示例</h2>
            </a>
            
            <p class="article-content">
                1.启动服务12systemctl enable firewalldsystemctl start firewalld
2.检查防火墙状态12firewall-cmd --statesystemctl status firewalld
3. 区域管理3.1网络区域简介通过将网络划分成不同的区域（通常情况下称为 zones），制定出不同区域之间的访问控制策略来控制不同任程度区域间传送的数据流。例如互联网是不可信任的区域，而内部网络是高度信任的区域。以避免安全策略中禁止的一些通信。它有控制信息基本的任务在不同信任的区域。典型信任的区域包括互联网 ( 一个没有信任的区域 ) 和一个内部网络 ( 一个高信任的区域 )。最终目标是提供受控连通性在不同水平的信任区域通过安全政策的运行和连通性模型之间根据最少特权原则。例如：公共 WIFI 网络连接应该不信任，而家庭有线网络连接就应该完全信任。网络...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>admin</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/05/24</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="firewalld示例"
              data-leadcloud-url="/2017/05/24/firewalld/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/05/24/firewalld/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/05/15/k8s1.7/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/05/15/k8s1.7/">
                <h2 class="article-title">Kubernetes1.7</h2>
            </a>
            
            <p class="article-content">
                关闭防火墙、selinux123systemctl stop firewalld &amp;&amp; systemctl disable firewalldvi /etc/sysconfig/selinuxsetenforce 0
配置代理12345.bashrchttp_proxy=192.168.2.102:1080 # 分别指定http、https协议使用的代理服务器地址https_proxy=192.168.2.102:1080no_proxy=192.168.2.0.,192.168.174.0. # 访问局域网地址（192.168.20.0/24网段）时不使用代理，可以用逗号分隔多个地址export http_proxy https_proxy no_proxy
安装12345678910111213141516171819202122232425262728yum i...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>kubernetes</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/05/15</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="Kubernetes1.7"
              data-leadcloud-url="/2017/05/15/k8s1.7/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/05/15/k8s1.7/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/05/10/快速安装Kubernetes/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/05/10/快速安装Kubernetes/">
                <h2 class="article-title">单机Kubernetes</h2>
            </a>
            
            <p class="article-content">
                单机版Kubernetes集群环境部署1.关闭防火墙12[root@node1 ~]# systemctl  stop firewalld[root@node1 ~]# systemctl  disable firewalld
2.安装etcd和kubernetes(此会自动安装docker)1[root@node1 ~]# yum install -y etcd kubernetes
3.安装好之后进行配置，修改两个配置文件123456789#docker的配置文件[root@node1 ~]# vim /etc/sysconfig/docker#OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'OPTIONS='--selinux-enabled=false --inse...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>kubernetes</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/05/10</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="单机Kubernetes"
              data-leadcloud-url="/2017/05/10/快速安装Kubernetes/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/05/10/快速安装Kubernetes/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/05/10/pyenv环境及python3.5.2安装/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/05/10/pyenv环境及python3.5.2安装/">
                <h2 class="article-title">pyenv</h2>
            </a>
            
            <p class="article-content">
                一、安装pyenv1.安装git123[root@python:~]# yum install -y gitsudo apt-get install -y build-essential zlib1g-dev libssl-devsudo apt-get install libsqlite3-dev libbz2-dev libreadline-dev
2.安装pyenv123456789[root@python ~]# curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bashWARNING: seems you still have not added &apos;pyenv&apos; to the load path.# Load pyenv ...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>python</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/05/10</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="pyenv"
              data-leadcloud-url="/2017/05/10/pyenv环境及python3.5.2安装/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/05/10/pyenv环境及python3.5.2安装/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/04/01/zabbix3.0安装/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/04/01/zabbix3.0安装/">
                <h2 class="article-title">zabbix3.0安装</h2>
            </a>
            
            <p class="article-content">
                一、 环境介绍
服务端server：192.168.99.60
数据库server:192.168.99.60
web-GUIserver:192.168.99.60
客户端agent1: 192.168.99.70
程序包12345678[root@server ~]# cp x86_64/*-3.0.2*  ./anaconda-ks.cfg                             zabbix-proxy-mysql-3.0.2-1.el7.x86_64.rpm    zabbix-server-pgsql-3.0.2-1.el7.x86_64.rpmx86_64                                      zabbix-proxy-pgsql-3.0.2-1.el7.x86_64.rpm    zabbix-web-3.0.2-1...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>zabbix</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/04/01</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="zabbix3.0安装"
              data-leadcloud-url="/2017/04/01/zabbix3.0安装/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/04/01/zabbix3.0安装/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/04/01/zabbix3.0配置/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/04/01/zabbix3.0配置/">
                <h2 class="article-title">zabbix3.0配置</h2>
            </a>
            
            <p class="article-content">
                一次完整的简单监控配置：1host group --&gt; host --&gt; [application] --&gt; item --&gt; trigger (Events) --&gt; (Media Type, User Group, User) --&gt; action (conditions, operations(send message, remote script))

入栈报文数监控Inbound Packets
1net.if.in[eno16777736,packets]  # 单位是速率

对端口进行探测web service
1net.tcp.port[192.168.99.70,80]  # 单位是布尔型


[zabbix监控控制配置6] ：

            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>zabbix</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/04/01</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="zabbix3.0配置"
              data-leadcloud-url="/2017/04/01/zabbix3.0配置/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/04/01/zabbix3.0配置/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/03/02/为docker_pull加速/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/03/02/为docker_pull加速/">
                <h2 class="article-title">为docker pull加速</h2>
            </a>
            
            <p class="article-content">
                在使用docker的过程当中，由于国内的gfw，你懂的，造成使用dockerhub异常缓慢，断流docker search,docker pull简直没法用。查阅文档后发现可以给镜像加速，我使用的是aliyun的加速具体方法如下12345678sed -i s/'ExecStart=/usr/bin/dockerd'/'ExecStart=/usr/bin/dockerd --registry-mirror=https://xxxxxxx.mirror.aliyuncs.com --graph="/mnt/docker-data" --storage-driver=overlay'/g /etc/systemd/system/docker.service--storage-driver=overlay #使用overlay--graph="/mnt/docker-data #dock...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>docker</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/03/02</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="为docker pull加速"
              data-leadcloud-url="/2017/03/02/为docker_pull加速/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/03/02/为docker_pull加速/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2017/01/10/CentOS6_kvm_install_&_conf/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2017/01/10/CentOS6_kvm_install_&_conf/">
                <h2 class="article-title">CentOS6 kvm</h2>
            </a>
            
            <p class="article-content">
                检查CPU是否支持虚拟机技术123cat /proc/cpuinfo |grep  "vmx\|svm"#其中svm是AMD的虚拟化技术.。#vmx是INTEL的虚拟化技术。
加载kvm模块1234lsmod | grep "kvm"#如果没有加载需要手动加载， modprobe kvmmodprobe kvm_intel
安装KVM12yum groupinstall Virt* -yyum install qemu* -y
创建桥接网络，一般情况下都是使用桥接类型的网络。123service network stopvirsh iface‐bridge eth0 br0 ‐‐no‐startservice network restart
kvm管理工具123456yum install ‐y virt‐manager# 将图形化界面转发至xmanager显示, 需要安装X图形化认...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>kvm</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2017/01/10</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="CentOS6 kvm"
              data-leadcloud-url="/2017/01/10/CentOS6_kvm_install_&_conf/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2017/01/10/CentOS6_kvm_install_&_conf/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/12/10/nginx_限制某个IP同一时间段的访问次数/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/12/10/nginx_限制某个IP同一时间段的访问次数/">
                <h2 class="article-title">nginx 限制某个IP同一时间段的访问次数</h2>
            </a>
            
            <p class="article-content">
                  如何设置能限制某个IP某一时间段的访问次数是一个让人头疼的问题，特别面对恶意的ddos攻击的时候。其中CC攻击（Challenge Collapsar）是DDOS（分布式拒绝服务）的一种，也是一种常见的网站攻击方法，攻击者通过代理服务器或者肉鸡向向受害主机不停地发大量数据包，造成对方服务器资源耗尽，一直到宕机崩溃。cc攻击一般就是使用有限的ip数对服务器频繁发送数据来达到攻击的目的，nginx可以通过HttpLimitReqModul和HttpLimitZoneModule配置来限制ip在同一时间段的访问次数来防cc攻击。HttpLimitReqModul用来限制连单位时间内连接数的模块，使用limit_req_zone和limit_req指令配合使用来达到限制。一旦并发连接超过指定数量，就会返回503错误。HttpLimitConnModul用来限制单个ip的并发连接数，使用l...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>web</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            null
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/12/10</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="nginx 限制某个IP同一时间段的访问次数"
              data-leadcloud-url="/2016/12/10/nginx_限制某个IP同一时间段的访问次数/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/12/10/nginx_限制某个IP同一时间段的访问次数/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    
    <li  class="article-excerpt-wrap " _href = "/2016/11/29/oh_my_zsh/">
        <div class="article-img img-ajax" data-src= /img/default-1.jpg>
           <div class="loading-img"><i class="fa fa-pulse fa-spinner"></i></div>
        </div>
        <div class="article-excerpt">
            
            <a class="article-title-link" href="/2016/11/29/oh_my_zsh/">
                <h2 class="article-title">oh my zsh</h2>
            </a>
            
            <p class="article-content">
                安装zsh1yum install -y zsh
切换shell1chsh -s /bin/zsh
安装配置on_my_zsh12345curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh#安装字体库   pip install powerline-statusgit clone https://github.com/powerline/fonts./install.sh
设置agnoster主题进入~/.zshrc打开.zshrc文件，然后将ZSH_THEME后面的字段改为agnoster。ZSH_THEME=”agnoster”
增加指令高亮效果 zsh-syntax-highlighting1234git clone git://github.com/zsh-user...
            </p>
            <div class="article-meta">
    
    
    <span class="categories-meta fa-wrap">
            <i class="fa fa-folder-open-o"></i>
        <span>admin</span>
    </span>
    
    
    <span class="fa-wrap">
         <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            linux
            
        </span>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta ">2016/11/29</span>
    </span>
    
    
    <span class="fa-wrap">
            <i class="fa fa-thermometer-three-quarters"></i>
        <span class="hits hits-meta " data-leadcloud-title="oh my zsh"
              data-leadcloud-url="/2016/11/29/oh_my_zsh/"><i class="fa fa-spinner fa-spin"></i></span>
    </span>
    
    
    <a href="/2016/11/29/oh_my_zsh/" class="read-article">阅读全文</a>
    
</div>

        </div>
        
    </li>
    
    

</ul>

<div id="page-pagination">
    <div id="page-nav">
        <a class="extend prev" rel="prev" href="/page/2/">&laquo; Prev</a><a class="page-number" href="/">1</a><a class="page-number" href="/page/2/">2</a><span class="page-number current">3</span><a class="page-number" href="/page/4/">4</a><a class="page-number" href="/page/5/">5</a><a class="extend next" rel="next" href="/page/4/">Next &raquo;</a>
    </div>
</div>

    </div>
    <footer id="footer">
    
    <div class="social">
        
        <a href="https://www.example1.com" class="fa fa-free-code-camp" target="_blank" title="freecodecamp"></a>
        
        <a href="https://github.com/werewolf2101" class="fa fa-github" target="_blank" title="Follow me~"></a>
        
        <a href="mailto:werewolf2101@gmail.com" class="fa fa-email" target="_blank" title="Email"></a>
        
    </div>
    
    <div>
        
        <a href="/" class="copyright-links">MIAbon</a>&copy;2015 - 2018.All Rights
        Reserved.
    </div>
    <p>Powered by <a href="https://hexo.io" class="copyright-links" target="_blank">Hexo</a> | Theme by <a
                href="https://github.com/GeekaholicLin" class="copyright-links" target="_blank">GeekaholicLin</a>
    </p>
    
    
    <p>
        <span id="busuanzi_container_site_uv" class="fa fa-bar-chart">
        欢迎第<span id="busuanzi_value_site_uv"><i class="fa fa-spinner fa-spin"></i></span>位小伙伴~
        </span>
    </p>
    
</footer>

</div>
    <ul id="tools">
    <li class="totop-btn fa fa-angle-up"></li>
    <li class="exchange-btn fa fa-exchange"></li>
  
    

    
</ul>
<p id="process"></p>
<div id="search-overlay">
    <div class="search-area-wrap">
        <div id="search-area">
            <div class="input-wrap focus">
                <i class="fa fa-search" aria-hidden="true"></i>
                <input id="search-input" autofocus autocomplete="off" type="text"
                       placeholder="search this website..."/>
            </div>
            <ul id="search-result">
                <li class="load-first"><i class="fa fa-spinner fa-pulse"></i></li>
            </ul>
        </div>
    </div>
</div>


    <script src="/js/highsong.js"></script>



<script src="/js/search.js"></script>
<script type="text/javascript">
    //theme config datas
    var copyrightObj = {};
    copyrightObj.enable = 'true';
    copyrightObj.triggerCopyLength = '200';
    copyrightObj.appendText = '商业转载请联系作者获得授权,非商业转载请注明出处 © gasslinks.com';
    var leancloudObj = {};
    leancloudObj.enable = 'true';
    leancloudObj.className = 'blog';
    leancloudObj.limits = '5';
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?dfebe5842f5d4196471b84802392a4b2";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
    var search = {};
    var search_path = "search.xml";
    if (!search_path) {
        search_path = "search.xml";
    }
    search.path = "/" + search_path;
    search.func =  _ajax.init();
</script>
<script src="/js/app.js"></script>


</body>
</html>